﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace SandThiefWeb.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class st_user : ControllerBase
    {
        public readonly SandThiefIBll.Ist_user _Ist_user;

        public st_user(SandThiefIBll.Ist_user ist_User)
        {
            _Ist_user = ist_User;
        }

        [HttpPost]
        public IActionResult getcount()
        {
            return new JsonResult(_Ist_user.count());
        }
    }
}
